﻿@model CobraCms.AdminConsole.Models.Content.EditNodeModel
           
@{
    ViewBag.Title = "Node";
    Layout = "~/Views/Shared/_WorkspaceLayout.cshtml";
    var parentId = @Model.Node.ParentId;
    
}
<div id="content-editor-container">
    <h2>Edit Node: @Model.Node.Id</h2>

    @using (Html.BeginForm("EditNode", "Content", new {nodeId=Model.Node.Id}, FormMethod.Post, new { id="content-editor-form"}))
    {
        @Html.HiddenFor(p => p.Node.ParentId);
        @Html.HiddenFor(p => p.Node.Id);
        @Html.LabelFor(p => p.Node.Name)
        @Html.TextBoxFor(p => p.Node.Name)

        if (Model.Succeeded)
         {
             <div><span>Post Success!</span></div>     
         }
                    
        <div class="action-toolbar">    
            <input type="submit" value="Save" />
        </div>
    }
</div>